/* eslint-disable */
export const sortListTitleMap = {
  global: {
    service_cpm: { title: 'Services Load (CPM - calls per minute)', scope: 'Service' },
    service_resp_time: { title: 'Slow Services (ms)', scope: 'Service' },
    service_apdex: { title: 'Un-Health Services (Apdex)', scope: 'Service' },
    endpoint_avg: { title: 'Slow Endpoints (ms)', scope: 'Endpoint' },
  },

  service: {
    service_instance_cpm: {
      title: 'Services Instances Load (CPM - calls per minute)',
      scope: 'ServiceInstance',
    },
    service_instance_resp_time: { title: 'Slow Services Instance (ms)', scope: 'ServiceInstance' },
    service_instance_sla: {
      title: 'Services Instance Successful Rate (%)',
      scope: 'ServiceInstance',
    },
  },

  endpoint: {
    endpoint_cpm: {
      title: 'Endpoint Load in Current Service (CPM - calls per minute)',
      scope: 'Endpoint',
    },
    endpoint_avg: { title: 'Slow Endpoints in Current Service (ms)', scope: 'Endpoint' },
    endpoint_sla: {
      title: 'Successful Rate in Current Service (%)',
      scope: 'Endpoint',
    },
  },
};

export const singleMetricMap = {
  service: {
    service_cpm: {
      title: 'Service Load (CPM - calls per minute)',
      scope: 'Service',
    },
    service_apdex: {
      title: 'Service Apdex',
      scope: 'Service',
    },
    service_sla: {
      title: 'Successful Rate (%)',
      scope: 'Service',
    },
  },
};

export const singleLineMap = {
  service: {
    service_resp_time: {
      title: 'Service Avg Response Time (ms)',
      scope: 'Service',
    },
    service_apdex: {
      title: 'Service Apdex',
      scope: 'Service',
    },
    service_sla: {
      title: 'Successful Rate (%)',
      scope: 'Service',
    },
    service_cpm: {
      title: 'Service Load (CPM - calls per minute)',
      scope: 'Service',
    },
  },
  instance: {
    service_instance_cpm: {
      title: 'Service Instance Load (CPM - calls per minute)',
      scope: 'ServiceInstance',
    },
    service_instance_sla: {
      title: 'Service Instance Successful Rate (%)',
      scope: 'ServiceInstance',
    },
    service_instance_resp_time: {
      title: 'Service Instance Latency (ms)',
      scope: 'ServiceInstance',
    },
    instance_jvm_cpu: {
      title: 'JVM CPU (Java Service) (%)',
      scope: 'ServiceInstance',
    },
  },
  endpoint: {
    endpoint_cpm: {
      title: 'Endpoint Load',
      scope: 'Endpoint',
    },
    endpoint_avg: {
      title: 'Endpoint Avg Response Time (ms)',
      scope: 'Endpoint',
    },
    endpoint_sla: {
      title: 'Endpoint Successful Rate (%)',
      scope: 'Endpoint',
    },
  },
};

export const labelLineMap = {
  global: {
    all_percentile: {
      title: 'Global Response Latency (percentile in ms)',
      scope: 'All',
    },
  },
  service: {
    service_percentile: {
      title: 'Service Response Time Percentile (ms)',
      scope: 'Service',
    },
  },
  endpoint: {
    endpoint_percentile: {
      title: 'Endpoint Response Time Percentile (ms)',
      scope: 'Endpoint',
    },
  },
};

export const batchMetricsMap = {
  instance: {
    instance_jvm_memory_heap: {
      names: [
        'instance_jvm_memory_heap',
        'instance_jvm_memory_heap_max',
        'instance_jvm_memory_noheap',
        'instance_jvm_memory_noheap_max',
      ],
      title: 'JVM Memory (Java Service) (MB)',
      scope: 'ServiceInstance',
    },
    instance_jvm_gc_time: {
      names: ['instance_jvm_young_gc_time', 'instance_jvm_old_gc_time'],
      title: 'JVM GC Time (ms)',
      scope: 'ServiceInstance',
    },
    instance_jvm_gc_count: {
      names: ['instance_jvm_young_gc_count', 'instance_jvm_old_gc_count'],
      title: 'JVM GC Count',
      scope: 'ServiceInstance',
    },
    instance_jvm_thread_count: {
      names: [
        'instance_jvm_thread_live_count',
        'instance_jvm_thread_daemon_count',
        'instance_jvm_thread_peak_count',
      ],
      title: 'JVM Thread Count (Java Service)',
      scope: 'ServiceInstance',
    },
  },
};

export const heatMap = {
  global: {
    all_heatmap: {
      title: 'Global Heatmap (ms)',
      scope: 'All',
    },
  },
};
